package com.itdachang.design.behavioral.mediator;

/**
 * @author gcq
 * @Create 2022-02-14
 */
public class HU8878 extends Captain{
    private ControlTower controlTower;

    public void setControlTower(ControlTower controlTower) {
        this.controlTower = controlTower;
    }

    @Override
    void fly() {
        System.out.println("HU8878 请求起飞");
        controlTower.acceptRequest(this, "fly");
    }

    @Override
    void land() {
        System.out.println("HU8878 请求降落");
        controlTower.acceptRequest(this, "land");
    }

    @Override
    void succss() {
        System.out.println("HU8878 完成");
        controlTower.acceptRequest(this, "success");
    }
}